import request from "../axios/axios";
//let url = "";
let url ="";
//let url = "/api"
//let url ="http://192.168.2.14"
//let url ="http://192.168.2.29"
export const getData = (current, size, params) => {
  return request({
    url: url+"/info/getInfo",
    method: "get",
  });
};

export const  add= (params) => {
  return request({
    url: url+"/info/add",
    method: "post",
    data: params,
  });
};

export const update = (params) => {
    return request({
      url:url+"/info/update",
      method: "post",
      data: params,
    });
  };

  
  export const del = (params) => {
    return request({
      url: url+"/info/delete",
      method: "get",
      data: params,
    });
  };
  
